const HtmlWebpackPlugin = require("html-webpack-plugin");
module.exports = {
  mode: "none",
  entry: "./main.js",
  output: {
    filename: "test.bundle.js",
  },
  module:{
    rules:[
      {
        test:/\.css$/,
        use:["style-loader","css-loader"],
      },
    ],
  },
  devServer:{
    port:9000,
    hot:true
  },
  plugins:[
    //打包需要的各种插件
    new HtmlWebpackPlugin({
      template:"./main.html"//HTML模块路径
    })
  ]
};